package com.jastar.android.game.cannon.model;

import android.graphics.Canvas;
import com.jastar.android.game.richman.logic.weight.WeightAble;

public abstract class CollidableEntity extends WeightAble {

    protected float x, y;

    public CollidableEntity(float x, float y, int weight) {
        super(weight);
        this.x = x;
        this.y = y;
    }

    public abstract boolean checkCollision(float projectileX, float projectileY, float projectileR);

    public abstract void draw(Canvas canvas);

    public float getX() {
        return x;
    }

    public float getY() {
        return y;
    }

}